#include "process.h"

#include <unistd.h>
double total=1024.0;
double speed =1;

void Download()
{
    double cnt=0;

    while(cnt<=total)
    {
        FlushProcess(total,cnt);
        usleep(3000);
        cnt+=speed;
    }

    printf("\nDownload %.2lfMB done\n",cnt);
}

int main()
{
    Download();
    Download();
    Download();
    Download();
    Download();
    //process_v1();
    return 0;
}
